package com.boil.qz.safekavass.pojo;

/**
 * Created by ChenYong on 2017-07-04.
 * <br>
 * Id 映射实体类。
 */
public class BaseVo {
    /**
     * 编号
     */
    protected Long id;

    /**
     * 默认构造器。
     */
    public BaseVo() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BaseVo idVo = (BaseVo) o;

        return id != null ? id.equals(idVo.id) : idVo.id == null;
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("BaseVo{");
        sb.append("id=").append(id);
        sb.append('}');
        return sb.toString();
    }
}